home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'checklst.pas' rev: 3.00
-
- #ifndef checklstHPP
- #define checklstHPP
- #include <Menus.hpp>
- #include <Forms.hpp>
- #include <StdCtrls.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <SysUtils.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Checklst
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TCheckListBox;
- class PASCALIMPLEMENTATION TCheckListBox : public Stdctrls::TCustomListBox
- {
- typedef Stdctrls::TCustomListBox inherited;
-
- private:
- bool FAllowGrayed;
- int FStandardItemHeight;
- Classes::TNotifyEvent FOnClickCheck;
- Classes::TList* FSaveStates;
- HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
- void __fastcall ResetItemHeight(void);
- void __fastcall DrawCheck(const Windows::TRect &R, Stdctrls::TCheckBoxState AState);
- void __fastcall SetChecked(int Index, bool Checked);
- bool __fastcall GetChecked(int Index);
- void __fastcall SetState(int Index, Stdctrls::TCheckBoxState AState);
- Stdctrls::TCheckBoxState __fastcall GetState(int Index);
- void __fastcall ToggleClickCheck(int Index);
- void __fastcall InvalidateCheck(int Index);
- System::TObject* __fastcall CreateWrapper(int Index);
- System::TObject* __fastcall ExtractWrapper(int Index);
- System::TObject* __fastcall GetWrapper(int Index);
- bool __fastcall HaveWrapper(int Index);
-
- protected:
- virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Stdctrls::TOwnerDrawState State
- );
- DYNAMIC void __fastcall SetItemData(int Index, int AData);
- DYNAMIC int __fastcall GetItemData(int Index);
- DYNAMIC void __fastcall KeyPress(char &Key);
- DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
- int Y);
- DYNAMIC void __fastcall ResetContent(void);
- DYNAMIC void __fastcall DeleteString(int Index);
- DYNAMIC void __fastcall ClickCheck(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- int __fastcall GetCheckWidth(void);
-
- public:
- __fastcall virtual ~TCheckListBox(void);
- __property bool Checked[int Index] = {read=GetChecked, write=SetChecked};
- __property Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
-
- __published:
- __property Classes::TNotifyEvent OnClickCheck = {read=FOnClickCheck, write=FOnClickCheck};
- __property Align ;
- __property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
- __property BorderStyle ;
- __property Color ;
- __property Columns ;
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property ImeMode ;
- __property ImeName ;
- __property IntegralHeight ;
- __property ItemHeight ;
- __property Items ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property Style ;
- __property TabOrder ;
- __property TabStop ;
- __property TabWidth ;
- __property Visible ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnDrawItem ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMeasureItem ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TCustomListBox.Create */ __fastcall virtual TCheckListBox(Classes::TComponent* AOwner) : Stdctrls::
- TCustomListBox(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TCheckListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
- ParentWindow) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Checklst */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Checklst;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // checklst
-